<!--
#    Copyright 2009, Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPGIS.
#    COOPGIS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPGIS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPGIS.  If not, see <http://www.gnu.org/licenses/>.
**************************************************************************
THIS FILE WAS DYNAMICALLY GENERATED BY THE DYNAMIC TEMPLATE INCLUDE
MODIFICATIONS TO THIS FILE WILL BE PERIODICALLY OVERWRITTEN!!!!!
MODIFY THIS TEMPLATE IN THE DYNAMICTEMPLATE.PY FILE
**************************************************************************
-->

<html xmlns="http://www.w3.org/1999/xhtml">
  <head> 
    <style type="text/css">
        #map{
            width: 400px;
            height: 600px;
            border: 1px solid black;
            }
    </style>
    <script src="/openlayers/lib/OpenLayers.js"></script>
        <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
    <title>COOPGIS Outdoor Lighting</title>
  </head>

  <body onload="init()">
  <b>{{LoginStatus}}</b>   &nbsp&nbsp&nbsp&nbsp <small><a href="/coopgis/">Main Menu</a></small><br>
  <br>
  <table style = "width:100%" border = "1">
  <form method="post" action="">
  <col width = "400">
    <tr>
        <td valign="top" rowspan = "4">
          <div id="map">
              <script defer="defer" type="text/javascript">
    var bnd = new OpenLayers.Bounds(-9040000, 3940000, -8931000, 4061000);
    var options = {projection: new OpenLayers.Projection("EPSG:3857"),
        displayProjection: new OpenLayers.Projection("EPSG:4326"),
        units: "m",
        numZoomLevels: 29,
        minResolution: 0.01,
        maxExtent: bnd,
        'tileSize': new OpenLayers.Size(1024,768),
        'buffer':0};
       
    var map = new OpenLayers.Map('map', options);

    
    

    var emap = new OpenLayers.Layer.MapServer("{{ LayerName }}", 
                  "/cgi-bin/mapserv?MAP={{ MapFileName }}",
                  {Layers:"Station Zoomed In"},
		   {'buffer':0, 
                   'sphericalMercator': 'true',
                  'projection': new OpenLayers.Projection("EPSG:3857"),
                   visibility: true,
                   isBaseLayer: false,
                   transparent: true});
   var gsat = new OpenLayers.Layer.Google("Google Satellite", {type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22});
    var gmap = new OpenLayers.Layer.Google("Google Streets", {numZoomLevels: 22});
    var gphy = new OpenLayers.Layer.Google("Google Physical",{type: google.maps.MapTypeId.TERRAIN});
    var ghyb = new OpenLayers.Layer.Google("Google Hybrid",{type: google.maps.MapTypeId.HYBRID, numZoomLevels: 22}); 
    var optionsforgraphic = {numZoomLevels: 29, maxResolution: 10000000, minResolution: 0.01};

    var graphic = new OpenLayers.Layer.Image('Background',
         '/music/mapbackground.png',
         bnd,
         new OpenLayers.Size(1024, 1024),
         optionsforgraphic);
    graphic.events.on({loadstart: function() {OpenLayers.Console.log("loadstart");},
                       loadend: function() {OpenLayers.Console.log("loadend");}});
 map.addLayers([graphic, gsat, gmap, gphy, ghyb, emap]); 
    map.addControl(new OpenLayers.Control.ScaleLine());
    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.addControl(new OpenLayers.Control.Permalink());
    map.addControl(new OpenLayers.Control.MousePosition());
    if (!map.getCenter()) {map.zoomToExtent(bnd)}
	    {{ OpenLayersZoom }}

  </script>

   
          </div>
        </td>
        <td valign = "top">
    	    <small>Map {{form.Map}} 
    	    Select Using GPS{{form.SelectGPSIndicator}} {{GPSStatus}}
            <input type="submit"/>
        </td>
    <tr>
        <td>
    	    <b>Selection</b><br>
            Station {{form.SelectStationid}}
            Tag {{form.SelectStationTagNumber}}
            RoadName {{form.SelectRoadName}}<br>
            MeterNumber {{form.SelectMeterNumber}}
            DCSINumber {{form.SelectDCSINumber}}<br>
            Assemblies at Station {{form.AssembliesAtSelectionStation}}
        </td>
    </tr>
    <tr>
        <td valign = "top">
            <table>
                
<tr>
    <td valign="top">
        <b>Update:</b>  {{form.UpdateIndicator0}}  Delete {{form.DeletedIndicator0}}<br>
        ID {{form.Conditionid0}}<br>
        Station ID{{form.StationIdentifier0}}<br>
        Tag# {{form.TagNumber0}}<br>
        Map# &nbsp&nbsp&nbsp{{form.OutdoorLightMapNumber0}} <br>
        Meter# {{form.OutdoorLightMeterNumber0}} <br>
        MeterMap# {{form.OutdoorLightMeterMapNumber0}}
    </td>
    <td valign="top">
        <b>Classification</b><br>
        Department {{form.ConditionDepartment0}}<br>
        Immediate{{form.PriorityImmediateIndicator0}} <br>
        ASAP{{form.PriorityASAPIndicator0}} <br>
        Routine{{form.PriorityRoutineIndicator0}}<br>
        Everything Fixed{{form.PriorityEverythingFixedMaintenanceOnlyIndicator0}}<br>
        Everything OK{{form.PriorityEverythingOkInspectionOnlyIndicator0}}<br>
        Vegetation Needs Attention{{form.PriorityVegetationNeedsAttentionIndicator0}}<br>
    </td>
    <td valign="top">
        <b>Inspection</b><br>
        Pole &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{{form.PoleConditionStatus0}}<br>
        GuyAnchor {{form.GuyAnchorConditionStatus0}}<br>
        Insulator {{form.InsulatorConditionStatus0}}<br>
        Conductor {{form.ConductorConditionStatus0}}<br>
        RightOfWay{{form.RightOfWayConditionStatus0}}<br>
        PadMount {{form.PadMountConditionStatus0}}<br>
        Vault &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{{form.VaultConditionStatus0}}<br>
        RiserCable {{form.RiserCableConditionStatus0}}
    </td>
    <td valign="top">
        <b>OutdoorLight</b><br>
        Outdoor Lighting {{form.PriorityOutdoorLightingConversionIndicator0}}<br>
        Needs Retirement {{form.NeedsRetirementIndicator0}}<br>
        Idle In Field {{form.OutdoorLightIdleIndicator0}}<br>
        Number of Lights {{form.OutdoorLightConsumerOwnedLightCount0}}<br>
        Rate {{form.OutdoorLightRate0}}<br>
        Problem Description {{form.OutdoorLightProblemCode0}}<br>
        Add'l Billable Pole Count {{form.OutdoorLightAdditionalBillingPoleCount0}}<br>
        Member Owns Pole {{form.OutdoorLightCustomerOwnsPoleIndicator0}}<br>
        Member Owns Light {{form.OutdoorLightCustomerOwnsLightIndicator0}}<br>
        <br>
        Description<br>
        {{form.ConditionMemberDescription0}}<br>
        Office Status {{form.OutdoorLightBillingWorkStartedNotificationString0}}
    </td>
    <td valign="top">
        <b>Work Order</b><br>
        Order {{form.WorkOrderNumber0}}<br>
        Performed By {{form.WorkPerformedBy0}}<br>
        Date {{form.WorkDate0}}<br>
        Hours {{form.WorkHours0}}<br>
        Remarks {{form.WorkRemarks0}}<br>
        Complete {{form.WorkCompletedIndicator0}}<br>
        Not Complete {{form.WorkNotCompletedIndicator0}}<br>
        <small>If not, describe:</small><br>
        {{form.WorkNotCompletedDescription0}}<br>
        <br>
        Foreman {{form.WorkForeman0}}<br>
        Signed Off {{form.WorkForemanSignoffIndicator0}}  Date {{form.WorkForemanSignoffDateTime0}}<br>
        <br><br>
    </td>
</tr>
    


<tr>
    <td valign="top">
        <b>Update:</b>  {{form.UpdateIndicator1}}  Delete {{form.DeletedIndicator1}}<br>
        ID {{form.Conditionid1}}<br>
        Station ID{{form.StationIdentifier1}}<br>
        Tag# {{form.TagNumber1}}<br>
        Map# &nbsp&nbsp&nbsp{{form.OutdoorLightMapNumber1}} <br>
        Meter# {{form.OutdoorLightMeterNumber1}} <br>
        MeterMap# {{form.OutdoorLightMeterMapNumber1}}
    </td>
    <td valign="top">
        <b>Classification</b><br>
        Department {{form.ConditionDepartment1}}<br>
        Immediate{{form.PriorityImmediateIndicator1}} <br>
        ASAP{{form.PriorityASAPIndicator1}} <br>
        Routine{{form.PriorityRoutineIndicator1}}<br>
        Everything Fixed{{form.PriorityEverythingFixedMaintenanceOnlyIndicator1}}<br>
        Everything OK{{form.PriorityEverythingOkInspectionOnlyIndicator1}}<br>
        Vegetation Needs Attention{{form.PriorityVegetationNeedsAttentionIndicator1}}<br>
    </td>
    <td valign="top">
        <b>Inspection</b><br>
        Pole &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{{form.PoleConditionStatus1}}<br>
        GuyAnchor {{form.GuyAnchorConditionStatus1}}<br>
        Insulator {{form.InsulatorConditionStatus1}}<br>
        Conductor {{form.ConductorConditionStatus1}}<br>
        RightOfWay{{form.RightOfWayConditionStatus1}}<br>
        PadMount {{form.PadMountConditionStatus1}}<br>
        Vault &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{{form.VaultConditionStatus1}}<br>
        RiserCable {{form.RiserCableConditionStatus1}}
    </td>
    <td valign="top">
        <b>OutdoorLight</b><br>
        Outdoor Lighting {{form.PriorityOutdoorLightingConversionIndicator1}}<br>
        Needs Retirement {{form.NeedsRetirementIndicator1}}<br>
        Idle In Field {{form.OutdoorLightIdleIndicator1}}<br>
        Number of Lights {{form.OutdoorLightConsumerOwnedLightCount1}}<br>
        Rate {{form.OutdoorLightRate1}}<br>
        Problem Description {{form.OutdoorLightProblemCode1}}<br>
        Add'l Billable Pole Count {{form.OutdoorLightAdditionalBillingPoleCount1}}<br>
        Member Owns Pole {{form.OutdoorLightCustomerOwnsPoleIndicator1}}<br>
        Member Owns Light {{form.OutdoorLightCustomerOwnsLightIndicator1}}<br>
        <br>
        Description<br>
        {{form.ConditionMemberDescription1}}<br>
        Office Status {{form.OutdoorLightBillingWorkStartedNotificationString1}}
    </td>
    <td valign="top">
        <b>Work Order</b><br>
        Order {{form.WorkOrderNumber1}}<br>
        Performed By {{form.WorkPerformedBy1}}<br>
        Date {{form.WorkDate1}}<br>
        Hours {{form.WorkHours1}}<br>
        Remarks {{form.WorkRemarks1}}<br>
        Complete {{form.WorkCompletedIndicator1}}<br>
        Not Complete {{form.WorkNotCompletedIndicator1}}<br>
        <small>If not, describe:</small><br>
        {{form.WorkNotCompletedDescription1}}<br>
        <br>
        Foreman {{form.WorkForeman1}}<br>
        Signed Off {{form.WorkForemanSignoffIndicator1}}  Date {{form.WorkForemanSignoffDateTime1}}<br>
        <br><br>
    </td>
</tr>
    


            </table>
        </td>
    </tr>
    <tr><td></td></tr>
  </table>
</form>
<br>
</ul>
</body>
</html>